#pragma once

#include <memory>
#include <string>

class ProtocolHandler {
public:
    virtual ~ProtocolHandler() = default;

    // 处理接收到的消息
    virtual void handleMessage(const std::string& message) = 0;

    // 处理连接事件
    virtual void onConnection(bool connected) = 0;
};